﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - CookieLogin</title>
    @RenderSection("Css", required: false)
</head>
<body>
    <h1>xxx欢迎你</h1>

    <div style="border:1px dashed;padding:5px 10px;">
        @if (ViewData["UserName"] == null)
        {
            <a asp-controller="UserLogin" asp-action="Login">登录</a>
            <span>|</span>
            <a asp-controller="UserLogin" asp-action="Register"> 注册</a>
        }
        else
        {
            <span>欢迎:@ViewData["UserName"]</span>
        }
    </div>


    @RenderBody()

    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
    <script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
    @RenderSection("Scripts", required: false)
</body>
</html>
